Allow test.sh to take arg: name of test to start with
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 26 Jul 2005 15:21:32 +0000 (15:21 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 26 Jul 2005 15:21:32 +0000 (15:21 +0000)
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstore/testsuite/test.sh

index 4cd550a28e3fab59cb2643ef01beb764edd54fca..29070030e3fc023348445c63e7ccf70e9bb1bc02 100755 (executable)
@@ -33,7 +33,10 @@ run_test()
     fi
 }
 
+MATCH=${1:-"*"}
 for f in testsuite/[0-9]*.sh; do
+    case `basename $f` in $MATCH) RUN=1;; esac
+    [ -n "$RUN" ] || continue
     if run_test $f; then
        echo Test $f passed...
     else